//
//  ShipuView_zhuanti.m
//  ThePrivateKitchen
//
//  Created by lirui on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "ShipuView_zhuanti.h"

@implementation ShipuView_zhuanti

- (void)dealloc
{
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [_label4 release];
    [_imgView1 release];
    [_imgView2 release];
    [_title release];
    [super dealloc];
}

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [ super initWithFrame:frame];
    if ( self) {
        [self creatView];
    }
    return  self;
}
-(void)creatView
{
       self.imgView1 =[[ UIImageView alloc] initWithFrame:CGRectMake(10 * WIDTH, HEIGHT*40, WIDTH * 375 - 20, 100 *HEIGHT)];
    //_imgView1.backgroundColor = [ UIColor redColor];
    _imgView1.userInteractionEnabled = YES;
   
    [self addSubview:_imgView1];
    [_imgView1 release];
    self.imgView2 =[[ UIImageView alloc] initWithFrame:CGRectMake(10 * WIDTH, 100+_imgView1.frame.size.height, _imgView1.frame.size.width, _imgView1.frame.size.height)];
    // _imgView2.backgroundColor = [ UIColor yellowColor];
    _imgView2.userInteractionEnabled = YES;
       [self addSubview:_imgView2];
    [_imgView2 release];
    
    self.label1 =[[ UILabel alloc] initWithFrame:CGRectMake(10* WIDTH, HEIGHT*140, self.imgView1.frame.size.width -20, HEIGHT*30)];
    //_label1.backgroundColor =[ UIColor greenColor];
    [self addSubview:_label1];
    [_label1 release];
    
    self.label2 =[[ UILabel alloc] initWithFrame:CGRectMake(10* WIDTH, HEIGHT*170, self.imgView1.frame.size.width -20, 20 * HEIGHT)];
    // _label2.backgroundColor =[ UIColor yellowColor];
    [self addSubview:_label2];
    _label2.font =[ UIFont systemFontOfSize:13];
    _label2.textColor = [ UIColor grayColor];
    //_label2.alpha = 0.8;
    [_label2 release];
    
    self.label3 =[[ UILabel alloc] initWithFrame:CGRectMake(10 * WIDTH, _imgView2.frame.origin.y + _imgView2.frame.size.height , self.imgView1.frame.size.width -20, HEIGHT*30)];
    // _label3.backgroundColor =[ UIColor greenColor];
    [self addSubview:_label3];
    [_label3 release];
    
    self.label4 =[[ UILabel alloc] initWithFrame:CGRectMake(10 * WIDTH,_label3.frame.origin.y + _label3.frame.size.height , self.imgView1.frame.size.width -20, HEIGHT*20)];
    //_label4.backgroundColor =[ UIColor yellowColor];
    [self addSubview:_label4];
    _label4.font =[ UIFont systemFontOfSize:13];
    [_label4 release];
    self.title = [[ UILabel alloc] initWithFrame:CGRectMake(10 * WIDTH, HEIGHT*10, WIDTH*280, HEIGHT*30)];
    [self addSubview:_title];
    [_title release];
}



@end
